import Vue from 'vue'
import Vuex from 'vuex'
import cart from './mudules/cart.js'
import user from './mudules/user.js'

// 2. 将 Vuex 安装为 Vue 的插件
Vue.use(Vuex)

const store = new Vuex.Store({
	modules: {
		m_cart: cart,
		m_user: user
	}
})

export default store
